<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<!doctype html>
<head>
<meta charset="UTF-8">
<meta name="viewport"
	content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>解除绑定用户页面</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<link rel="stylesheet" type="text/css"
	href="<c:url value="/static/jquery-easyui/themes/default/easyui.css"/>">
<link rel="stylesheet" type="text/css"
	href="<c:url value="/static/jquery-easyui/themes/icon.css"/>">
<link rel="stylesheet" type="text/css"
	href="<c:url value="/static/css2/css/common.css"/>">
<link rel="stylesheet" type="text/css"
	href="<c:url value="/static/css2/fonts/iconfont.css"/>">
<link rel="stylesheet" type="text/css"
	href="<c:url value="/static/css2/css/style.css"/>">
<script type="text/javascript"
	src="<c:url value="/static/jquery-easyui/jquery-1.6.min.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/static/jquery-easyui/jquery.easyui.min.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/static/jquery-easyui/plugins/jquery.panel.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/static/jquery-easyui/plugins/jquery.datagrid.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/static/jquery-easyui/plugins/jquery.messager.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/static/jquery-easyui/ext-for-framework.js.jsp"/>"></script>
<script type="text/javascript"
	src="<c:url value="/static/jquery-easyui/locale/easyui-lang-zh_CN.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/static/js/common.js"/>"></script>

<script type="text/javascript"
	src="<c:url value="/static/js/footer.js"/>"></script>

<script type="text/javascript"
	src="<c:url value="/static/js/showMsg.js"/>"></script>
<style>
.input {
	width: 140px;
	height: 18px;
}
</style>
<script type="text/javascript">
	$(document).ready(function() {
	      document.getElementById('zzy').style.display = 'none';
		associationOpenId();
	});

	function associationOpenId() {
		$('#saveForm').form(
						'submit',
						{
							url : '<c:url value='/weixintest/associationOut.do'/>', //查询提交路径
							onSubmit : function()//提交按钮相应函数
							{
								return $('#saveForm').form('validate');
							},
							success : function(data) {
								data = eval('(' + data + ')');
								if (data.success) {
									//跳转登录界面
									alert("成功解除！");
			                        window.close();
								} else {
									$.messager.alert("提示", data.msg, 'warning');
								}
							},
							error : function() {
								$.messager.alert("错误", "系统错误，请联系管理员！", 'error');
								return;
							}
						});
	}
</script>
</head>

<body>
	<table width="90%" align="center">
		<tr></tr>
		<tr>
			<td>
				<div style="height: auto; background: #fafafa; padding: 5px;"
					class="easyui-panel" title="绑定用户" iconCls="icon-save"
					collapsible="true" minimizable="false" maximizable="false"
					closable="false" id="zzy">

					<form id="saveForm" name="saveForm" method="post">
						<table cellpadding="5">
							<tr>
								<td><input class="easyui-validatebox" type="hidden"
									id="openId" name="openId" value='${openId } '
									data-options="required:true" /></td>
							</tr>
						</table>
					</form>
				</div>
			</td>
		</tr>
	</table>
</body>
</html>